package com.guo.hui.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class UtilDate {

	public static String datetoString(Date date, String type) {
		SimpleDateFormat format = new SimpleDateFormat(type);
		String time = format.format(date);
		return time;
	}

}
